import {getList} from "../api";

const creator =(type,payload)=>({type,payload});

//获取所有分类
export const getAllType= ()=>dispatch=>{
    getList()
        .then((res)=>{
            dispatch(creator("GET_ALL_TYPE",res.male));
        })
}